
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<a href="<%=request.getContextPath()%>/personas/add">AGREGAR</a>
	<table>
		<tr>
			<th>NOMBRE</th>
			<th>CEDULA</th>
			<th>EDAD</th>
		</tr>
		<c:forEach items="${persona}" var="p">
			<tr>
				<td>${p.nombre}</td>
				<td>${p.id}</td>
				<td>${p.edad}</td>
				<td> <a href="<%=request.getContextPath()%>/personas/actualizar/${p.id}">ACTUALIZAR</a></td>
				<td> <a href="<%=request.getContextPath()%>/personas/eliminar/${p.id}">ELIMINAR</a></td>
			</tr>
		</c:forEach>
	</table>

</body>
</html>